export default {
    submit: {
        validate: async ({ dispatch }: any) => {
            const errors = await dispatch({
                type: 'forms/validateForm',
            })

            return errors || []
        },
        action: async ({ dispatch }: any) => {
            console.log('start');
            const getDataForSubmit = await dispatch({
                type: 'forms/getDataForSubmit'
            })
            console.log('getDataForSubmit---', getDataForSubmit);
            console.log(' end');
            return {
                1: getDataForSubmit
            }
        }
    },
    // save: {
    //     action: async () => {
    //         console.log('action_save  start');
    //         return "save.action"
    //     }
    // }
}